﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lenovo.CFI.Common
{
    public class TopicDcIp
    {
        public TopicDcIp()
        {
        }

        public TopicDcIp(int id, int topicID, string user, string aspect)
        {
            this.id = id;
            this.topicID = topicID;
            this.user = user;
            this.aspect = aspect;
        }

        private int id;
        private int topicID;
        private string user;
        private string aspect;

        public int ID
        {
            get { return id; }
            set { id = value; }
        }

        public int TopicID
        {
            get { return topicID; }
            set { topicID = value; }
        }

        public string User
        {
            get { return user; }
            set { user = value; }
        }

        /// <summary>
        /// NULL表示IP负责人；其余的表示对应技术方向的负责人
        /// </summary>
        public string Aspect
        {
            get { return aspect; }
            set { aspect = value; }
        }

        public bool IsIP
        {
            get { return this.aspect == null; }
        }
    }
}
